package com.eatme.web.app.article.dao;

import org.apache.ibatis.annotations.*;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.HashMap;
import java.util.List;
public interface ActivitiDao {


    //读取表单
//    @Select("SELECT Control_ID_,Control_VALUE_ from formdata where PROC_INST_ID_ = #{PROC_INST_ID}")
//    List<HashMap<String, Object>> selectRecord(String processInstanceId);


//    //写入表单
//    @Insert("<script> insert into formdata (PROC_DEF_ID_,PROC_INST_ID_,FORM_KEY_,Control_ID_,Control_VALUE_)" +
//            "    values" +
//            "    <foreach collection=\"maps\" item=\"formData\" index=\"index\" separator=\",\">" +
//            "      (#{formData.PROC_DEF_ID_,jdbcType=VARCHAR},#{formData.PROC_INST_ID_,jdbcType=VARCHAR}," +
//            "      #{formData.FORM_KEY_,jdbcType=VARCHAR}, #{formData.Control_ID_,jdbcType=VARCHAR},#{formData.Control_VALUE_,jdbcType=VARCHAR})" +
//            "    </foreach>  </script>")
//    int save(List<HashMap<String, Object>> listMap);

    //删除表单
//    @Delete("DELETE FROM formdata WHERE PROC_DEF_ID_ = #{PROC_DEF_ID}")
//    int delete(@Param("PROC_DEF_ID") String PROC_DEF_ID);
}
